// 数据拼接
function addHtml(data) {
	var html = '';
	if (data.list.length <= 0) {
		$('.ui_loadmore_text').html('<span>没有更多了</span>');
	} else {
		for (var i = 0; i < data.list.length; i++) {
			var status = data.list[i].status;
			if (status == 'SUCESS' || status=='INVESTING') {
				status = '投资中';
			} else if (status == 'LOANING' || status == 'LOANED') {
				status = '还款中';
			} else if (status == 'RETURNED'){
				status = '已还清';
			}
			var investTime = null;
			if (data.list[i].investTime == null) {
				investTime = '';
			} else {
				investTime = new Date(data.list[i].investTime)
						.format("yyyy-MM-dd");
			}
			var money = (data.list[i].investMoney-0)/100;
			html += '<a href="/borrowInfo/detail.htm?borrowId=' + data.list[i].borrowId + '">';
			html += '<div class="title"><span class="ui_arrow fr"></span><span class="ui_stutas">'+status+'</span>' + data.list[i].borrowName + '</div>';
			html += '<div class="con">';
			html += '<ul class="clearfix">';
			html += '<li><span class="f10">年化率：</span>' + data.list[i].borrowRate + '%</li>';
			html += '<li><span class="f10">投资金额：</span>' + money.toFixed(2) + '</li>';
			html += '<li><span class="f10">状态：</span>'+status+'</li>';
			html += '<li><span class="f10">投资时间：</span>' + investTime + '</li>';
			html += '</ul>';
			html += '</div>';
			html += '</a>';
		}
		$('.ui_loadmore_text').html('<a href="javascript:void(0);" class="more">点击加载更多</a>');
	}
	$('#list_more').append(html);
}
